<?php 
	include_once("nextver.php");
	//TODO:先跳过这段检测,云平台不支持session
	// if($sessionId == null)
		// echo "sessionId is null";
	// if($spesa == NULL || $speu == null)
		// echo "other is null";
	// if($sessionId == null || $spesa == NULL || $speu == null){
		// echo "404";
		// return false;
	// }
?>
<!DOCTYPE html>
<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="description" content="">
    <meta name="author" content="">
	<?php //TODO:change icon ?>
    <link rel="icon" href="./public/pic/pHctrlico.ico">

    <title>device Board</title>

    <!-- Bootstrap core CSS -->
    <link href="../bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../bootstrap/dashboard.css" rel="stylesheet">
	<link href="../bootstrap/dMsignin.css" rel="stylesheet">
    

    
  </head>


   
  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">navigation</span>
            <span class="icon-bar"></span>
            
          </button>
          <a class="navbar-brand" href="./index.php"><-- return </a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
		<?php //TODO:?? ?>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">DeviceBoard</a></li>
          <!--  <li><a href="#">Settings</a></li>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Help</a></li>
			-->
          </ul>
          <form class="navbar-form navbar-right">
           <!-- <input class="form-control" placeholder="Search..." type="text"> -->
          </form>
        </div>
      </div>
    </nav>
	
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="#">Overview <span class="sr-only">(current)</span></a></li>
            <li><a href="#">Add device</a></li>
            <li><a href="#">Delete device</a></li>
            
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="../index.php">Log out</a></li>
           
          </ul>
          
        </div>
	
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header" ><a name="Device_board">Device board</a></h1>
		<div class="container">

        <form class="form-signin" method="post" action="./dealWithDevice.php">
            <h2 class="form-signin-heading">manage device</h2>
            <input type="hidden" name="spesa" value="<?php echo $spesa;?>" ></input>
			<input type="hidden" name="speu" value="<?php echo $speu;?>" ></input>
			<button name="addDevice" class="btn btn-lg btn-primary btn-block" type="submit" value="add">Add a new device</button>
			
			<label for="inputDid" class="sr-only">deviceId</label>
            <input type="text" name="did" id="inputDid" class="form-control" placeholder="deviceId" value="0" required autofocus>
            			
			<button name="deleteDevice" class="btn btn-lg btn-primary btn-block" type="submit" value="delete">Delete your device</button>
            
			
        </form>

		</div> <!-- /container -->



          </div>
        </div>
     
  

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../bootstrap/jquery.min.js"></script>
    <script src="../bootstrap/js/bootstrap.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="../bootstrap/holder.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../bootstrap/ie10-viewport-bug-workaround.js"></script>
  

<svg style="visibility: hidden; position: absolute; top: -100%; left: -100%;" preserveAspectRatio="none" viewBox="0 0 200 200" height="200" width="200"><defs></defs><text style="font-weight:bold;font-size:10pt;font-family:Arial, Helvetica, Open Sans, sans-serif;dominant-baseline:middle" y="10" x="0">200x200</text></svg></body></html>